package com.lzh.gulimall.product.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @ClassName ThreadPoolConfigProperties
 * @Description TODO
 * @Author liuzhihui
 * @Date 2020/8/30 16:52
 * @Version 1.0
 **/
@Data
@Component
@ConfigurationProperties(prefix = "gulimall.thread")
public class ThreadPoolConfigProperties {
    /**
     * 核心线程池数量
     */
    private Integer coreSize;
    /**
     * 最大线程池数量
     */
    private Integer maxSize;
    /**
     * 空闲线程存活时间，单位秒
     */
    private Integer keepAliveTime;
    /**
     * 阻塞队列，存放任务量
     */
    private Integer capacity;
}
